#include "PerfilDucto.h"

PerfilDucto::PerfilDucto(): m_ancho(0.5), m_alto(0.3){
	// Ocho vertices (3 componentes cada uno)
	m_vertices=8;

    // ************** Vertices *****************
	// Vertice 1
	m_vecVertices.push_back(glm::vec3(0.0f,0.0f, m_alto));

	// Vertice 2
	m_vecVertices.push_back(glm::vec3(0.0f,m_ancho, m_alto));

	// Vertice 3
	m_vecVertices.push_back(glm::vec3(0.0f,m_ancho, m_alto));

	// Vertice 4
	m_vecVertices.push_back(glm::vec3(0.0f,m_ancho, 0.0f));

	// Vertice 5
	m_vecVertices.push_back(glm::vec3(0.0f,m_ancho, 0.0f));

	// Vertice 6
	m_vecVertices.push_back(glm::vec3(0.0f,0.0f, 0.0f));

	// Vertice 7
	m_vecVertices.push_back(glm::vec3(0.0f, 0.0f, 0.0f));

	// Vertice 8
	m_vecVertices.push_back(glm::vec3(0.0f, 0.0f, m_alto));

	// *************** Normales ********************************
	// Vertice 1
	m_vecNormales.push_back(glm::vec3(0.0f, 0.0f, 1.0f));

	// Vertice 2
	m_vecNormales.push_back(glm::vec3(0.0f, 0.0f, 1.0f));

	// Vertice 3
	m_vecNormales.push_back(glm::vec3(0.0f, 1.0f, 0.0f));

	// Vertice 4
	m_vecNormales.push_back(glm::vec3(0.0f, 1.0f, 0.0f));

	// Vertice 5
	m_vecNormales.push_back(glm::vec3(0.0f, 0.0f, -1.0f));

	// Vertice 6
	m_vecNormales.push_back(glm::vec3(0.0f, 0.0f, -1.0f));

	// Vertice 7
	m_vecNormales.push_back(glm::vec3(1.0f, 0.0f, 0.0f));

	// Vertice 8
	m_vecNormales.push_back(glm::vec3(1.0f, 0.0f, 0.0f));
}

PerfilDucto::~PerfilDucto(){
}

unsigned int PerfilDucto::getCantVertices(){
	return m_vertices;
}

std::vector< glm::vec3 > PerfilDucto::getVertices(){
	return m_vecVertices;
}


std::vector< glm::vec3 > PerfilDucto::getNormales(){
	return m_vecNormales;
}